/*
 * @Author: ZephyrGao
 * @Date: 2024-02-08 15:23:28
 * @Description: 
 * Copyright (c) 2024 by ZephyrGao, All Rights Reserved. 
 */

import { ComponentLib } from '@/config/config';

// ----- PROP NAME -----
export const NOT_FOUND = '404' // 404
// export const UNAUTHORIZED = 'pageUnauthorized' //401
export const USER = 'user'

// ComponentLib
// '@/views/system/exception/exception.vue'

// ----- ERROR COMP -----
export const EXCEPTION_COMP = () => import(`@/views/${ComponentLib}/system/exception/exception.vue`);

export const PAGE_NOT_FOUND_COMP = () => import(`@/views/${ComponentLib}/system/error/404.vue`);

export const PAGE_UNAUTHORIZED_COMP = () => import(`@/views/${ComponentLib}/system/error/401.vue`);

//TODO OTHER ERROR

// ----- SYSTEM COMP ----
export const LAYOUT = () => import(`@/layout/${ComponentLib}/index.vue`);

export const BASE_LOGIN_COMP = () => import(`@/views/${ComponentLib}/system/login/index.vue`)

export const BASE_REGISTER_COMP = () => import(`@/views/${ComponentLib}/system/register/index.vue`)

export const ABOUT_COMP = () => import(`@/views/${ComponentLib}/system/about/index.vue`)

export const DASHBOARD_ANALYSIS_COMP = () => import(`@/views/${ComponentLib}/dashboard/analysis/index.vue`)

export const DASHBOARD_WORKBENCH_COMP = () => import(`@/views/${ComponentLib}/dashboard/workbench/index.vue`)

// ----- LAYOUT COMP ----
export const HEADER_LAYOUT = () =>  import(`@/layout/${ComponentLib}/header/index.vue`)
export const FOOTER_LAYOUT = () =>  import(`@/layout/${ComponentLib}/footer/index.vue`)
export const CONTENT_LAYOUT = () =>  import(`@/layout/${ComponentLib}/content/index.vue`)
export const MENU_LAYOUT = () => import(`@/layout/${ComponentLib}/slider/menu/index.vue`)


// export const ROUTE_BASE_SKELETON = {  
//   components: {  
//     menu: MENU_LAYOUT, // 菜单组件
//     header: HEADER_LAYOUT,// 导航栏组件 
//     content: CONTENT_LAYOUT, // 默认布局  
//     // footer: FOOTER_LAYOUT // 底部组件
//   }  
// };

//TODO
// export const BASE_REDIRECT_COMP = () => import('@/views/system/register/index.vue')

